-- GENERATED SPELL FOR [High Elf Mage-Priest] --


function spell0_27747(pUnit, Event) --@Holy Bolt,n/a--
pUnit:FullCastSpellOnTarget(34232,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27747', 2500, 1)
end

function Sorts_27747(pUnit, Event)
local choix_sorts_27747 = math.random(0, 0)
if choix_sorts_27747 == 0 then
pUnit:RegisterEvent('spell0_27747', 1, 1)
end
end

function mob27747_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27747', math.random(1500, 3000), 1)
end

function mob27747_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27747_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27747_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27747, 1, 'mob27747_Action')
RegisterUnitEvent(27747, 2, 'mob27747_Leave')
RegisterUnitEvent(27747, 3, 'mob27747_Kill')
RegisterUnitEvent(27747, 4, 'mob27747_Die')
